import express, { Request, Response  } from "express";
import {changeNameService} from "../service/userService";

const router = express.Router()

router.post('/change/name',  async (req: Request, res: Response) => {
    const { email, name } = req.body
    await changeNameService(res, name, email)
})

export default router